package com.plan.dao.mapper.card;

import com.plan.controller.card.response.CardListVO;
import com.plan.entity.card.Card;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CardMapper {
    int insert(Card card);

    int update(Card card);

    Card selectOneById(@Param("teamId") Long teamId, @Param("cardId") Long cardId);


    int delete(@Param("teamId") Long teamId, @Param("cardId") Long cardId);

    List<Card> list(@Param("teamId") Long teamId);

    List<Card> selectWaitDeleteCard(Date start, Date end, Long preMaxId);

    int realDeleteByCardId(Long teamId, Long cardId);
}
